home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / gcl-1.000 / gcl-1 / gcl-1.0 / lsp / makefile < prev    next >
Encoding:
Makefile  |  1994-05-10  |  2.5 KB  |  133 lines

  1. .SUFFIXES: .fn .o .c .lsp
  2.  
  3.  
  4.  
  5. PORTDIR    = ../unixport
  6. CAT=cat
  7.  
  8. OBJS    = arraylib.o assert.o defmacro.o defstruct.o describe.o evalmacros.o \
  9.     iolib.o listlib.o mislib.o module.o numlib.o packlib.o predlib.o \
  10.     seq.o seqlib.o setf.o top.o trace.o sloop.o debug.o
  11.  
  12.  
  13.  
  14. COMPILE_FILE=$(PORTDIR)/saved_gcl $(PORTDIR) -system-p -no-o -compile
  15. CFLAGS    = -c -O -I../h
  16.  
  17. .lsp.c: 
  18.     @ ../xbin/if-exists $(PORTDIR)/saved_gcl \
  19.     "rm -f $*.c $*.h $*.data $*.o" \
  20.     "$(COMPILE_FILE) $* "
  21.  
  22. .lsp.o: 
  23.     @ ../xbin/if-exists $(PORTDIR)/saved_gcl \
  24.     "rm -f $*.c $*.h $*.data $*.o" \
  25.     "$(COMPILE_FILE) $* " \
  26.     "$(CC) $(OFLAG) $(CFLAGS) $*.c " \
  27.     "../xbin/append ${NULLFILE} $*.data $*.o "
  28.  
  29. # begin makedefs
  30. GCLDIR=/d11/wfs/newakcl
  31. SHELL=/bin/sh
  32. MACHINE=sun4
  33.  
  34. LBINDIR=/usr/local/bin
  35. OFLAG    =  -O
  36. LIBS    = -lm 
  37.  
  38. #include "sparc.h"
  39.  
  40. # the commercial (for money) C compiler has never been able
  41. # to compile akcl/gcl correctly.  Perhaps it does not like the idea
  42. # that this is free software.   However the standard C compiler is ok.
  43.  
  44. CC = cc  -DVOL=  -I$(GCLDIR)/o -Bstatic -temp=. -pipe
  45. CC = cc  -DVOL=  -I$(GCLDIR)/o -Bstatic  -pipe
  46. ODIR_DEBUG=-O4
  47.  
  48. #gcc 2.1 and 2.2 compile gcl correctly as far as I have been able to determine.
  49. #gcc 2.3.3 does not compile gcl correctly
  50. # gcc 2.5.7 is correct as far as I can tell
  51. #CC = gcc -I${GCLDIR}/o -static -DVOL=volatile -W 
  52.  
  53. AS=as -P
  54.  
  55. CFLAGS    = -c $(DEFS)  -I../h
  56.  
  57. MAIN    = ../o/main.o
  58.  
  59. MPFILES=$(MPDIR)/mpi-sparc.o $(MPDIR)/sparcdivul3.o $(MPDIR)/libmport.a
  60. #MPFILES=${MPDIR}/mpi.o ${MPDIR}/libmport.a
  61.  
  62. RSYM    = rsym
  63. SFASL    = $(ODIR)/sfasl.o
  64.  
  65. # This function will be run before dumping.
  66. # When using SFASL it is good to have (si::build-symbol-table)
  67. INITFORM=(si::build-symbol-table)
  68.  
  69.  
  70.  
  71. # Use symbolic links
  72. SYMB=-s
  73. # the  make to use for saved_kcp the profiler.
  74. KCP=kcp-sun
  75.  
  76. NULLFILE = ../h/secondary_sun_magic
  77.  
  78. # end makedefs
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94. all:    $(OBJS)
  95.  
  96.  
  97.  
  98. .c.o:
  99.     $(CC) $(OFLAG) $(CFLAGS) $*.c
  100.     $(CAT) ${NULLFILE} $*.data >> $*.o
  101.  
  102. .lsp.fn: ../cmpnew/collectfn.o
  103.     ../xbin/make-fn $*.lsp
  104.  
  105. all:    $(OBJS)
  106.  
  107. fns1:    $(FNS)
  108.  
  109. fns:    ../cmpnew/collectfn.o
  110.     make fns1 -e "FNS=`echo ${OBJS} | sed -e 's:\.o:\.fn:g'`"
  111.  
  112. ../cmpnew/collectfn.o: ../cmpnew/collectfn.lsp
  113.     (cd ../cmpnew ; $(PORTDIR)/saved_gcl $(PORTDIR)/ collectfn.lisp collectfn S1000)
  114.  
  115.  
  116. clean:
  117.     rm -f *.o core a.out
  118. allclean:
  119.     rm -f *.h *.data *.c
  120.  
  121. dummy3 $(NEWCFILES): sys-proclaim.lisp
  122.  
  123. sys-proclaim.lisp:
  124.     echo '(in-package "SYSTEM")' \
  125.     '(load "../cmpnew/collectfn")'\
  126.     '(compiler::make-all-proclaims "*.fn")' | ../xbin/gcl
  127.  
  128.  
  129. newc:    
  130.     make $(OBJS) -e "NEWCFILES=`echo $(OBJS) | sed -e 's:\.o:.c:g'`"
  131.  
  132.  
  133.